<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    //另一种函数定义的方式
    let add=function(){
        let sum=0;
        for (let i = 0; i < arguments.length; i++) {
            let n=arguments[i]||0;
            sum+=n;
        }
        return sum;
    }
</script>

</body>
</html>